package com.xcf.service.business.common.domesticroute.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xcf.dao.DaoSupport;
import com.xcf.service.business.common.domesticroute.DomesticRouteMaintainService;
import com.xcf.util.PageData;
@Service("DomesticRouteMaintainService")
public class DomesticRouteMaintainServiceImpl implements DomesticRouteMaintainService{
	@Resource(name = "daoSupport")
	private DaoSupport dao;
	@SuppressWarnings("unchecked")
	public List<PageData> findDomesticRouteMaintainInfo(PageData pd) throws Exception {
		
		return (List<PageData>)dao.findForList("DomesticRouteMaintain.findDomesticRouteMaintain", pd);
	}
	@Override
	public PageData findDomesticRouteMaintainInfoById(PageData pd) throws Exception {
		
		return (PageData)dao.findForObject("DomesticRouteMaintain.findDomesticRouteMaintainById", pd);
	}
	@Override
	public void saveDomesticRouteMaintainInfo(PageData pd) throws Exception {
		dao.save("DomesticRouteMaintain.saveDomesticRouteMaintain", pd);
		
	}
	@Override
	public void updateDomesticRouteMaintain(PageData pd) throws Exception {
		dao.update("DomesticRouteMaintain.updateDomesticRouteMaintain", pd);
		
	}
	@Override
	public void deleteDomesticRouteMaintain(PageData pd) throws Exception {
		dao.delete("DomesticRouteMaintain.deleteDomesticRouteMaintain", pd);
		
	}

}
